home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
windows
/
yawpi22.zip
/
YAWPI.TXT
< prev
Wrap
Text File
|
1996-07-09
|
31KB
|
974 lines
YAWPI: Yet Another Windows Program Installer
============================================
Version 2.2
===========
1. Introduction
_______________
YAWPI is a simple yet powerful and elegant Windows installation program.
It features user selection of destination directory full screen main window
with color gradient (similar to MS-Setup) and display of meter bar
(progress bar) for each program disk as well as numeric percentage progress
per file or archive.
New in version 2.2 are copy directories, prompt before exec and placement
of the title line at the bottom of the screen.
New in version 2.1 are uninstall, support for multiple languages and a few
other enhancements.
YAWPI can copy files and uncompress archives (as well as nested archives)
into subdirectories or the Windows directory. The decompression code is
integrated in INSTALL.EXE. That means that you can compress your application
very tightly without paying royalties for compression software.
The source directory can be on a floppy drive, CD drive or hard drive.
Multiple floppy diskettes are supported, as well as multiple .zip files
distributed through BBS's and the Internet.
The installation parameters are set by defining variables in a simple syntax
similar to .INI files (Variable=Value). No scripts and no fancy script
editors and generators - simply edit a few short text files - that's all
there is to it!! If you start from the supplied samples you can have a
complete package in half an hour.
2. Registration
_______________
YAWPI is a shareware product. It means that you must register before
using this software to distribute your application.
The unregistered version has all the functionally of the registered version
so you can prepare your configuration files and test the installation
process before registering. However, the unregistered version displays
the message "YAWPI - Unregistered Version" on the caption bar.
With QUICK registration you simply receive a registration password that
matches your name (or company name). As soon as you enter your name and
password to the 'Register' dialog of the Seal editor, you can modify the
title of the caption bar to match your application.
Your password will work with future versions of YAWPI, so you can upgrade
by simply downloading the latest version from our home page
(http://www.rtlsoft.com/yawpi) or from any other location.
With FULL registration you will receive the full source code (C and C++)
of YAWPI and AR, so you will be free to further fine tune it according
to your needs.
Edit the file "register.txt" (or click on the "Register" icon), fill in
the details and send it with your payment by e-mail, fax or s-mail.
3. Windows 95
_____________
This version of YAWPI was compiled for Windows 3.1 but was tested under
Windows 95. It works well under Windows 95 but does not support long file
names or long directory names (folders, that is...).
INSTALL.EXE may be renamed to SETUP.EXE (or anything else, for example
CdSetup.exe and HdSetup.exe).
4. Compressed Archives
______________________
YAWPI supports archives compressed by the AR freeware utility. AR is not
compatible with PKZIP but achieves almost the same compression rate.
This is *far* better than using Microsoft COMPRESS on individual files.
AR is freeware and is available with C source. The DOS based AR.EXE
is included in this package.
If your application uses a large number of small files you can save upto 15%
of the space by using nested archives. The extra saving comes from the fact
that compression algorithms work better on large files. You first combine
your small files into one large *uncompressed* archive, then compress
that file into a container archive. Here is how you do it with AR:
AR s myprog.ar files*.*
AR a myprog.arr myprog.ar
"myprog.arr" is smaller than "myprog.ar" created by:
AR a myprog.ar files*.*
If you mark "myprog.arr" as a nested archive, YAWPI will perform
the following steps during installation:
1. Extract "myprog.ar" from "myprog.arr".
2. Extract "files*.*" from "myprog.ar".
3. Delete "myprog.ar".
Notes:
1. AR always saves and restores the file paths in the archive. This
is equivalent to "pkzip -P" and "pkunzip -d".
You should therefore avoid specifying absolute pathnames when
preparing the archives.
ar myprog.ar c:\myprog\files*.*
ar mydata.ar c:\myprog\data\files*.*
Wrong: paths are absolute, user cannot change them.
cd \myprog
ar myprog.ar files*.*
ar mydata.ar data\files*.*
Right: paths are relative to c:\myprog, user can install
to another directory such as d:\userprog.
2. To create a nested archive with pkzip use the following steps:
pkzip -e0 myprog0.zip files*.*
pkzip myprog.zip myprog0.zip
5. INSTALL.CFG
______________
The "install.cfg" file contains three sections:
1. General section [General] contains general parameters.
2. Disk section [Disk1] [Disk2] etc. contains the list of files and
archives to be installed.
3. Groups section [Groups] contains the program group and icons to
be installed on the user's desktop.
This file must be located on the first floppy disk (or in a subdirectory of
the hard drive) together with "install.exe".
If you rename "install.exe" to another name, you must also rename "install.cfg".
For example, your CD-ROM application may include "CdSetup.exe" and "HdSetup.exe"
for running directly from the CD drive or from the hard drive, respectively.
In that case, include "CdSetup.cfg" and "HdSetup.cfg" files to provide the
configuration for each type of installation.
The following subsections (numbered 5.*) describe the variables that belong
to the general section of "install.cfg".
5.1 ProgramName
Defines the name of the program being installed.
Example: ProgramName=Magic Graphics
5.2 DefaultPath
Defines the default destination path for installing the program.
Example: DefaultPath=C:\MGRAPHIC
5.2a DestPathPrompt
If defined to "N" the user is not prompted for destination path.
By default DestPathPrompt is "Y".
Example:
DestPathPrompt=N
Note that DefaultPath must be specified, even if no files are copied.
5.3 Title1
A centered title line at the top of the main window.
Example: Title1=Magic Graphics
5.4 Title1Size
Size of Title1 in points. This number is converted to pixels depending on
the screen resolution. Use 50 points for large letters, 20 points for small
letters, or any number in between.
Example: Title1Size=25
5.5 Title1Color
Color of Title1 in RGB.
Example: Title1Color=30 187 0
5.6 Title2, Title2Size, Title2Color
Same as Title1. This is a second title line.
5.6a Title2Pos
By default Title2 is drawn just below Title1 at the top of the screen.
If you define
Title2Pos=Bottom
then Title2 is drawn at the bottom of the screen.
5.7 TitleFont
The font used for both titles. The default font is "Times New Roman".
However, if you specify a font which does not exist on the user's
system, Windows uses its default font of "Arial".
5.8 TitleShadeColor
Color of shade for Title1 and Title2 in RGB.
Example: TitleShadeColor=0 0 0
5.9 TopColor, BottomColor
Define the background color at the top and bottom of the main window.
You can get a solid background by setting TopColor and BottomColor to the
same value. If TopColor is different than Bottom Color you get
a color gradient.
Example:
TopColor=0 76 38
BottomColor=51 204 102
5.10 NumGradientSteps
Defines the number of color gradient steps. This number should not
exceed 200.
Example: NumGradientSteps=32
5.11 Welcome, WelcomeCaption
If "Welcome" is defined, a dialog box with this message and "Yes/No"
buttons is dis